/******************************************************************************
 * FILE NAME:
 *  trs_queue_def.h
 *
 * DESCRIPTION:
 * This file contains the function declaration and MACROS for queue message.
 *
 *
 * DESIGN REFERENCE:
 *
 *
 * REVISION HISTORY   :
 * Date            Author               REASON
 * 06.08.2013      Thuan Nguyen         Creation
 *
 * Copyright 2005, NET
 * ***************************************************************************/
#ifndef QUEUE_DEF_H_
#define QUEUE_DEF_H_

#include<unistd.h>
#include<stdio.h>
#include<stdlib.h>
#include<errno.h>
#include<sys/types.h>
#include<sys/ipc.h>
#include<sys/msg.h>
#include<netinet/in.h>
#include"trs_types_def.h"
#include"../../common/h/logging.h"





#define TRANSPORT_REQ_MSG_ID 0x00000001

enum reasion_close_connection_t{
	CANNOT_CREATE_SOCKET_CLIENT = 0,
	CANNOT_CONNECT_TO_CLIENT,
	DISCONNECT_WITH_CLIENT,
	READ_DATA_FAILURE
};
enum reasion_open_connection_t{
	CONNECT_FROM_CLIENT = 0,
	MESSAGE_SEND_FROM_INTPUT_QUEUE
};
typedef struct{
	U32 msg_id;
	U8 action;
	U8 socket_id;
	struct sockaddr_in client_addr;
	pthread_t thread_key;
	U8 reasion;
}request_msg_t;


U8 trs_create_tasklist_queues_func();
U8 trs_create_input_queues_func();

void trs_monitor_tasklist_queues_func();
void trs_monitor_input_queues_func();

#endif

